const Router = require('koa-router')

const authRouter = new Router()

const {login,success} = require('../controller/auth.controller.js')
const {verifyLogin,verifyAuth} = require('../middleware/auth.middleware')
authRouter.post('/login',verifyLogin,login)
//测试token
authRouter.get('/test',verifyAuth,success)
module.exports = authRouter